<template>
  <div class="index">
    <!-- <keep-alive include="reHome">
      <router-view class="index-one"></router-view>
    </keep-alive>

    <footer class="foot"></footer>
    <ul>
      <router-link tag="li" to="/home">
        <img src="1.jpg" alt="" />
        <span>首页</span>
      </router-link>
      <router-link tag="li" to="/cate">
        <img src="1.jpg" alt="" />
        <span>分类</span>
      </router-link>
      <router-link tag="li" to="/Cart">
        <img src="1.jpg" alt="" />
        <span>购物车</span>
      </router-link>
      <router-link tag="li" to="/My">
        <img src="1.jpg" alt="" />
        <span>我的</span>
      </router-link>
    </ul> -->
  </div>
</template>




<style>
.index {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.index-one {
  flex: 1;
  overflow: auto;
}
ul {
  width: 100%;
  height: 50px;
  background: white;
  display: flex;
  justify-content: space-around;
  position: fixed;
  bottom: 0;
}
ul li {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}
li:active {
  background: rgb(27, 223, 197);
  color: red;
}
img {
  width: 40%;
  height: 40%;
  border-radius: 50%;
}
.foot {
  width: 100%;
  height: 50px;
}
</style>